import turtle

turtle.hideturtle()

def forward(degrad,width):
    turtle.forward(width)
    turtle.left(degrad)
    return turtle.xcor(),turtle.ycor()

def drawHexagon(width):
    degrad = 60
    x1=y1=x2=y2=x3=y3=x4=y4=x5=y5=x6=y6=0
    x2,y2 = forward(degrad,width)
    x3,y3 = forward(degrad,width)
    x4,y4 = forward(degrad,width)
    x5,y5 = forward(degrad,width)
    x6,y6 = forward(degrad,width)
    x1,y1 = forward(degrad,width)

    turtle.goto(x5,y5)
    turtle.goto(x3,y3)
    turtle.goto(x1,y1)
    turtle.goto(x4,y4)
    turtle.goto(x2,y2)
    turtle.goto(x6,y6)
    turtle.goto(x3,y3)
    turtle.goto(x2,y2)
    turtle.goto(x5,y5)

drawHexagon(100)

turtle.done()
